home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / etc / Emacs.ad < prev    next >
Encoding:
Text File  |  1995-06-06  |  8.7 KB  |  252 lines

  1. ! This is the app-defaults file for XEmacs.
  2. !
  3. ! This used to be identical to sample.Xdefaults, but the resources
  4. ! below have been rewritten to be as general as possible to avoid
  5. ! overriding user resources.  Other than the form rewriting, both
  6. ! files should be kept in sync. 
  7. ! The resources below are loaded into the XEmacs executable at compile-time:
  8. ! changes to .../etc/Emacs.ad made after XEmacs has been built will have no
  9. ! effect.
  10. ! However, you may copy .../etc/Emacs.ad to /usr/lib/X11/app-defaults/Emacs
  11. ! (or whatever the standard app-defaults directory is at your site) to cause
  12. ! it to be consulted at run-time.  (Do this only for site-wide customizations:
  13. ! personal customizations should be put into ~/.Xdefaults instead.)
  14. ! Note that the file must be named Emacs, not XEmacs.
  15. ! See the NEWS file (C-h n) or XEmacs manual (C-h i) for a description of
  16. ! the various resources and the syntax for setting them.
  17. ! Energize users: note that this is not the same app-defaults file that is
  18. ! used with the Energize-specific version of XEmacs.
  19.  
  20.  
  21. ! Colors and backgrounds.
  22. ! ======================
  23. ! The contrasts of these colors will cause them to map to the appropriate
  24. ! one of "black" or "white" on monochrome systems.
  25. ! The valid color names on your system can be found by looking in the file
  26. ! `rgb.txt', usually found in /usr/lib/X11/ or /usr/openwin/lib/X11/.
  27.  
  28.  
  29. ! Set the foreground and background colors.  This will apply to all
  30. ! elements of XEmacs, except those that specifically override them.
  31. *Foreground:                Black
  32. *Background:                WhiteSmoke
  33. Emacs.modeline*attributeForeground:    Black
  34. Emacs.modeline*attributeBackground:    Gray75
  35.  
  36. ! Set the color of the text cursor.
  37. *cursorColor:                Red3
  38.  
  39. ! Set the color of the mouse pointer.
  40. *pointerColor:                Black
  41.  
  42. ! Set the menubar colors.  This overrides the default foreground and
  43. ! background colors specified above.
  44. *menubar*Foreground:            Gray30
  45. *menubar*Background:            Gray75
  46. ! This is for buttons in the menubar.  
  47. ! Yellow would be better, but that would map to white on monochrome.
  48. *menubar*buttonForeground:        Blue
  49. *XlwMenu*selectColor:            ForestGreen
  50. *XmToggleButton*selectColor:        ForestGreen
  51.  
  52. ! Specify the colors of popup menus.
  53. *popup*Foreground:            Black
  54. *popup*Background:            Gray75
  55.  
  56. ! Specify the colors of the various sub-widgets of the dialog boxes.
  57. *dialog*Foreground:            Black
  58. ! #A5C0C1 is a shade of blue
  59. *dialog*Background:            #A5C0C1
  60. *dialog*XmTextField*Background:        WhiteSmoke
  61. *dialog*XmText*Background:        WhiteSmoke
  62. *dialog*XmList*Background:        WhiteSmoke
  63.  
  64. ! Xlw Scrollbar colors
  65. *XlwScrollBar*Foreground:        Gray30
  66. *XlwScrollBar*Background:        Gray75
  67. *XmScrollBar*Foreground:        Gray30
  68. *XmScrollBar*Background:        Gray75
  69.  
  70. !
  71. ! The Lucid Scrollbar supports two added resources, KnobStyle is either
  72. ! "plain" (default) or "dimple".  Dimple puts a small dimple in the middle
  73. ! of the knob that depresses when the knob is clicked on.  ArrowPosition is
  74. ! either "opposite" (default) or "same".  Opposite puts the arrows at opposite
  75. ! of the scrollbar, same puts both arrows at the same end, like the Amiga.
  76. !
  77. ! Emacs*XlwScrollBar.KnobStyle:      dimple
  78. ! Emacs*XlwScrollBar.ArrowPosition:  opposite
  79.  
  80.  
  81. !
  82. ! If you want to turn off a toolbar, set its height or width to 0.
  83. ! The correct size value is not really arbitrary.  We only control it
  84. ! this way in order to avoid excess frame resizing when turning the
  85. ! toolbars on and off.
  86. !
  87. ! To change the heights and widths of the toolbars:
  88. !
  89. ! Emacs.topToolBarHeight:        37
  90. ! Emacs.bottomToolBarHeight:        0
  91. ! Emacs.leftToolBarWidth:        0
  92. ! Emacs.rightToolBarWidth:        0
  93.  
  94. *topToolBarShadowColor:            Gray90
  95. *bottomToolBarShadowColor:        Gray40
  96. *backgroundToolBarColor:        Gray75
  97. *toolBarShadowThickness:        2
  98.  
  99.  
  100. ! If you want to turn off vertical scrollbars, or change the default
  101. ! pixel width of the vertical scrollbars, do it like this (0 width
  102. ! means no vertical scrollbars):
  103. ! Emacs.scrollBarWidth: 0
  104. ! To change it for a particular frame, do this:
  105. ! Emacs*FRAME-NAME.scrollBarWidth: 0
  106.  
  107.  
  108. ! If you want to turn off horizontal scrollbars, or change the default
  109. ! pixel height of the horizontal scrollbars, do it like this (0 height
  110. ! means no horizontal scrollbars):
  111. ! Emacs.scrollBarHeight: 0
  112. ! To change it for a particular frame, do this:
  113. ! Emacs*FRAME-NAME.scrollBarHeight: 0
  114.  
  115.  
  116. ! To dynamically change the labels used for menubar buttons...
  117. ! Emacs*XlwMenu.resourceLabels: True
  118. ! Emacs*XlwMenu.newFrame.labelString: Open Another Window
  119.  
  120. ! To have the Motif scrollbars on the left instead of the right, do this:
  121. ! Emacs*scrollBarPlacement: BOTTOM_LEFT
  122. !
  123. ! To have the Athena scrollbars on the right, use `BOTTOM_RIGHT' instead
  124.  
  125. ! To have Motif scrollbars act more like Xt scrollbars...
  126. !
  127. ! Emacs*XmScrollBar.translations: #override \n\
  128. !     <Btn1Down>:     PageDownOrRight(0)    \n\
  129. !     <Btn3Down>:     PageUpOrLeft(0)
  130.  
  131. ! Fonts.
  132. ! ======
  133. ! XEmacs requires the use of XLFD (X Logical Font Description) format font
  134. ! names, which look like
  135. !     *-courier-medium-r-*-*-*-120-*-*-*-*-*-*
  136. ! if you use any of the other, less strict font name formats, some of which
  137. ! look like
  138. !         lucidasanstypewriter-12
  139. ! and        fixed
  140. ! and        9x13
  141. ! then XEmacs won't be able to guess the names of the bold and italic versions.
  142. ! All X fonts can be referred to via XLFD-style names, so you should use those
  143. ! forms.  See the man pages for X(1), xlsfonts(1), and xfontsel(1).
  144.  
  145.  
  146. ! The default font for the text area of XEmacs is chosen at run-time
  147. ! by lisp code which tries a number of different possibilities in order
  148. ! of preference.  If you wish to override it, use this:
  149. ! Emacs.default.attributeFont:  -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
  150.  
  151. ! If you choose a font which does not have an italic version, you can specify
  152. ! some other font to use for it here:
  153. ! Emacs.italic.attributeFont:  -*-courier-medium-o-*-*-*-120-*-*-*-*-iso8859-*
  154. !
  155. ! And here is how you would set the background color of the `highlight' face,
  156. ! but only on the screen named `debugger':
  157. ! Emacs*debugger.highlight.attributeBackground:        PaleTurquoise
  158. ! See the NEWS file (C-h n) for a more complete description of the resource
  159. ! syntax of faces.
  160.  
  161.  
  162. ! Font of the modeline, menubar and pop-up menus.
  163. ! Note that the menubar resources do not use the `face' syntax, since they
  164. ! are X toolkit widgets and thus outside the domain of XEmacs proper.
  165. *menubar*Font:             -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
  166. *popup*Font:            -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
  167.  
  168. ! Font in the Motif dialog boxes.
  169. ! (Motif uses `fontList' while most other things use `font' - if you don't
  170. ! know why you probably don't want to.)
  171. *XmDialogShell*FontList:    -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
  172. *XmTextField*FontList:        -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
  173. *XmText*FontList:        -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
  174. *XmList*FontList:        -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
  175.  
  176.  
  177. ! Dialog box translations.
  178. ! =======================
  179.  
  180. ! This accelerator binds <return> in a dialog box to <activate> on button1
  181. *dialog*button1.accelerators:#override\
  182. <KeyPress>Return: ArmAndActivate()\n\
  183. <KeyPress>KP_Enter: ArmAndActivate()\n\
  184. Ctrl<KeyPress>m: ArmAndActivate()\n
  185.  
  186. ! Translations to make the TextField widget behave more like XEmacs
  187. *XmTextField*translations: #override\n\
  188.     !<Key>osfBackSpace:    delete-previous-character()\n\
  189.     !<Key>osfDelete:    delete-previous-character()\n\
  190.     !Ctrl<Key>h:         delete-previous-character()\n\
  191.     !Ctrl<Key>d:         delete-next-character()\n\
  192.     !Meta<Key>osfDelete:    delete-previous-word()\n\
  193.     !Meta<Key>osfBackSpace:    delete-previous-word()\n\
  194.     !Meta<Key>d:        delete-next-word()\n\
  195.     !Ctrl<Key>k:        delete-to-end-of-line()\n\
  196.     !Ctrl<Key>g:        process-cancel()\n\
  197.     !Ctrl<Key>b:        backward-character()\n\
  198.     !<Key>osfLeft:        backward-character()\n\
  199.     !Ctrl<Key>f:        forward-character()\n\
  200.     !<Key>osfRight:        forward-character()\n\
  201.     !Meta<Key>b:        backward-word()\n\
  202.     !Meta<Key>osfLeft:    backward-word()\n\
  203.     !Meta<Key>f:        forward-word()\n\
  204.     !Meta<Key>osfRight:    forward-word()\n\
  205.     !Ctrl<Key>e:        end-of-line()\n\
  206.     !Ctrl<Key>a:        beginning-of-line()\n\
  207.     !Ctrl<Key>w:        cut-clipboard()\n\
  208.     !Meta<Key>w:        copy-clipboard()\n\
  209.     <Btn2Up>:        copy-primary()\n
  210.  
  211. ! With the XEmacs typeahead it's better to not have space be bound to
  212. ! ArmAndActivate() for buttons that appear in dialog boxes.  This is
  213. ! not 100% Motif compliant but the benefits far outweight the
  214. ! compliancy problem.  
  215. *dialog*XmPushButton*translations:#override\n\
  216.     <Btn1Down>:         Arm()\n\
  217.     <Btn1Down>,<Btn1Up>: Activate()\
  218.             Disarm()\n\
  219.     <Btn1Down>(2+):     MultiArm()\n\
  220.     <Btn1Up>(2+):       MultiActivate()\n\
  221.     <Btn1Up>:           Activate()\
  222.                 Disarm()\n\
  223.     <Key>osfSelect:      ArmAndActivate()\n\
  224.     <Key>osfActivate:   ArmAndActivate()\n\
  225.     <Key>osfHelp:    Help()\n\
  226.     ~Shift ~Meta ~Alt <Key>Return:    ArmAndActivate()\n\
  227.     <EnterWindow>:      Enter()\n\
  228.     <LeaveWindow>:      Leave()\n
  229.  
  230.